#ifndef _HTTP_CMD_H_
#define _HTTP_CMD_H_
#include <vector>
#include <cstdint>
#include <list>
#include <memory>
#include <mutex>
#include <vector>
#include "json/json.h"
using namespace std;
class http_dvr_cmd
{
private:
    http_dvr_cmd();
    ~http_dvr_cmd();
public:
    static http_dvr_cmd* pInstance_;
    static http_dvr_cmd* GetMng()
    {
        if (!pInstance_)
            pInstance_ = new http_dvr_cmd;
        return pInstance_;
    }
    bool run(std::string& body,Json::Value& v);
    bool CheckUrl(std::string url, Json::Value& v);
public:
    //检索录像列表
    int SearchRec(Json::Value& rt, Json::Value req);
    int PlaybackStart(Json::Value& rt, Json::Value req);
private:
    bool init_;
    std::string MainAppUrl_;
    Json::Value jsError_;
};

#endif